<div class="modal-body wrapper-lg">
    <div class="row">
        <uib-tabset justified="true" class="tab-container">
            <uib-tab heading="文件" select="changeType(0)">
                <ng-form role="form" name="form0" class="form-validation">
                    <div class="form-group">
                        <label>名称:</label>
                        <input type="text" ng-model="data.attachmentName" required="required" class="form-control"/>
                    </div>
                    <div class="form-group">
                        <label>描述:</label>
                            <textarea ng-model="data.attachmentDescription"
                                      class="form-control"></textarea>
                    </div>
                    <div class="form-group">
                        <label>文件:</label>
                        <input type="file" nv-file-select uploader="uploader" required="required" />
                    </div>
                    <footer class="panel-footer  lter">
                        <!-- alert -->
                        <div class="m-b-md">
                            <uib-alert ng-repeat="alert in Alert.alerts" type="{{alert.type}}"
                                       close="Alert.closeAlert($index)">
                                {{alert.msg}}
                            </uib-alert>
                        </div>
                        <!-- / alert -->
                        <button type="submit" class="btn btn-success"
                                ng-disabled="form0.$invalid || !uploader.getNotUploadedItems().length"
                                ng-click="upload()">创建
                        </button>
                        <button type="submit" class="btn btn-success" ng-click="cancel()">关闭</button>
                    </footer>
                </ng-form>
            </uib-tab>


            <uib-tab heading="Web资源" select="changeType(1)">
                <ng-form role="form" name="form1" class="form-validation">
                    <div class="form-group">
                        <label>URL:</label>
                        <input type="text" ng-model="data.url" class="form-control" required="required"/>
                    </div>
                    <div class="form-group">
                        <label>名称:</label>
                        <input type="text" ng-model="data.attachmentName" required="required" class="form-control"/>
                    </div>
                    <div class="form-group">
                        <label>描述:</label>
                        <textarea ng-model="data.attachmentDescription" class="form-control"></textarea>
                    </div>
                    <footer class="panel-footer  lter">
                        <!-- alert -->
                        <div class="m-b-md">
                            <uib-alert ng-repeat="alert in Alert.alerts" type="{{alert.type}}"
                                       close="Alert.closeAlert($index)">
                                {{alert.msg}}
                            </uib-alert>
                        </div>
                        <!-- / alert -->
                        <button type="submit" class="btn btn-success"
                                ng-disabled="form1.$invalid"
                                ng-click="upload()">创建
                        </button>
                        <button type="submit" class="btn btn-success" ng-click="cancel()">关闭</button>
                    </footer>
                </ng-form>
            </uib-tab>

        </uib-tabset>
    </div>
</div>
